﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace ModuloAdministrativo
{
    public partial class AbrirCaixaForm : Form
    {
        WSsiar.ServicosSIARSoapClient ws = new WSsiar.ServicosSIARSoapClient();
        public AbrirCaixaForm()
        {
            InitializeComponent();
        }

        private void button1_Click(object sender, EventArgs e)
        {
            decimal valor = decimal.Parse(valorTB.Text);
            WSsiar.Financeiro fin = new WSsiar.Financeiro();
            fin.Abertura = valor;
            fin.DataAbertura = System.DateTime.Now;
            ws.CaixaAbrir(fin);
        }
    }
}
